embed.openFile.f (field)
12 uses
embed (current package)
embed.go#L343: return []byte(ofile.f.data), nil
embed.go#L348: f *file // the file itself
embed.go#L358: func (f *openFile) Stat() (fs.FileInfo, error) { return f.f, nil }
embed.go#L361: if f.offset >= int64(len(f.f.data)) {
embed.go#L365: return 0, &fs.PathError{Op: "read", Path: f.f.name, Err: fs.ErrInvalid}
embed.go#L367: n := copy(b, f.f.data[f.offset:])
embed.go#L379: offset += int64(len(f.f.data))
embed.go#L381: if offset < 0 || offset > int64(len(f.f.data)) {
embed.go#L382: return 0, &fs.PathError{Op: "seek", Path: f.f.name, Err: fs.ErrInvalid}
embed.go#L389: if offset < 0 || offset > int64(len(f.f.data)) {
embed.go#L390: return 0, &fs.PathError{Op: "read", Path: f.f.name, Err: fs.ErrInvalid}
embed.go#L392: n := copy(b, f.f.data[offset:])
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |